import * as Cesium from 'cesium'
import { getAssetsFile } from "@/utils/utils";
let pictures=[
    "tycho2t3_80_mx.jpg",
    "tycho2t3_80_my.jpg",
    "tycho2t3_80_mz.jpg",
    "tycho2t3_80_px.jpg",
    "tycho2t3_80_py.jpg",
    "tycho2t3_80_pz.jpg"
];

const skyBox=(viewer:any,typeNumber:string='1')=>{
    let basUrl:string='skybox/';
    viewer.scene.skyBox = new Cesium.SkyBox({
        sources: {
            negativeX:getAssetsFile(basUrl+typeNumber+'/'+pictures[0])   ,
            negativeY: getAssetsFile(basUrl+typeNumber+'/'+pictures[1])  ,
            negativeZ:getAssetsFile(basUrl+typeNumber+'/'+pictures[2])  ,
            positiveX:getAssetsFile(basUrl+typeNumber+'/'+pictures[3])  ,
            positiveY:getAssetsFile(basUrl+typeNumber+'/'+pictures[4])  ,
            positiveZ: getAssetsFile(basUrl+typeNumber+'/'+pictures[5])  ,
        },
    });
}
export {
 skyBox
}
